Type alias: WithTRPCSSROptions<TRouter>
WithTRPCSSROptions: <
TRouter
>WithTRPCOptions
<TRouter
> & {responseMeta
: (opts
) =>ResponseMeta
;ssr
:true
| (opts
) =>boolean
|Promise
<boolean
>;ssrPrepass
:TRPCPrepassHelper
;}
WithTRPCSSROptions.responseMeta
optional
responseMeta: (opts
) =>ResponseMeta
Parameters
Parameter Type opts
object
opts.clientErrors
TRPCClientError
<TRouter
>[]opts.ctx
NextPageContext
Returns
ResponseMeta
WithTRPCSSROptions.ssr
ssr:
true
| (opts
) =>boolean
|Promise
<boolean
>If you enable this, you also need to add a
ssrPrepass
-propLink
https://trpc.io/docs/client/nextjs/ssr
WithTRPCSSROptions.ssrPrepass
ssrPrepass:
TRPCPrepassHelper
use
import { ssrPrepass } from '@trpc/next/ssrPrepass'
Link
Type parameters
Parameter |
---|
TRouter extends AnyRouter |
Source
Generated using TypeDoc and typedoc-plugin-markdown